import request from '@/utils/request'

// 查询单据编号列表
export function listDocNum(query) {
  return request({
    url: '/oa/docNum/list',
    method: 'get',
    params: query
  })
}

// 查询单据编号详细
export function getDocNum(docNum) {
  return request({
    url: '/oa/docNum/' + docNum,
    method: 'get'
  })
}

// 新增单据编号
export function addDocNum(data) {
  return request({
    url: '/oa/docNum',
    method: 'post',
    data: data
  })
}

// 新增单据编号
export function newDocNum(data) {
  return request({
    url: '/oa/docNum/new',
    method: 'post',
    data: data
  })
}

// 修改单据编号
export function updateDocNum(data) {
  return request({
    url: '/oa/docNum',
    method: 'put',
    data: data
  })
}

// 删除单据编号
export function delDocNum(docNum) {
  return request({
    url: '/oa/docNum/' + docNum,
    method: 'delete'
  })
}
